# Contributor: Rasmus Thomsen <oss@cogitri.dev>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=gnome-flashback
pkgver=3.52.1
pkgrel=0
pkgdesc="GNOME Flashback is a GNOME session providing a similiar experience to GNOME 2.x"
url="https://wiki.gnome.org/Projects/GnomeFlashback"
# gdm
arch="all !armhf !s390x"
license="GPL-2.0-or-later"
depends="
	gsettings-desktop-schemas
	xkeyboard-config
	"
makedepends="
	alsa-lib-dev
	elogind-dev
	gdm-dev
	glib-dev
	gnome-bluetooth-dev
	gnome-desktop-dev
	gnome-panel-dev
	gsettings-desktop-schemas-dev
	gtk+3.0-dev
	ibus-dev
	libcanberra-dev
	libx11-dev
	libxcb-dev
	libxext-dev
	libxfixes-dev
	libxkbfile-dev
	libxrandr-dev
	libxxf86vm-dev
	linux-pam-dev
	polkit-dev
	pulseaudio-dev
	upower-dev
	xkeyboard-config-dev
	"
subpackages="$pkgname-lang"
source="https://download.gnome.org/sources/gnome-flashback/${pkgver%.*}/gnome-flashback-$pkgver.tar.xz"

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--localstatedir=/var
	make
}

check() {
	make check
}

package() {
	make DESTDIR="$pkgdir" install

	rm -rf "$pkgdir"/usr/lib/systemd
}

sha512sums="
30291be06e18188e20288ee2ac62d9e67a7a079fab1d2169f91d1b7555f663c1381def72220fd13182d7b68af5bd3ebb4c9bd9605f45f92f87783edcb0deba85  gnome-flashback-3.52.1.tar.xz
"
